<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css"
	href="../resources/Hplus/css/plugins/webuploader/webuploader.css">
<link href="../resources/Hplus/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link href="../resources/Hplus/css/plugins/summernote/summernote.css"
	rel="stylesheet">
<link href="../resources/Hplus/css/plugins/summernote/summernote-bs3.css"
	rel="stylesheet">
<script type="text/javascript">
		var uploadUrl="<c:url value='/file/ckeditor/uploadFile.json' />";
</script>
<script type="text/javascript" src="../resources/ckeditor4.5/ckeditor.js"></script>

<div class="wrapper wrapper-content">
	<div class="row">
		<div class="col-lg-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<ol class="breadcrumb">
						<li>公告管理</li>
						<li><strong>公告修改</strong></li>
					</ol>

				</div>
				<div class="ibox-content no-padding">
					<div class="form-group" id="navBtn">
						<div class=" col-sm-2">
							<a class="btn btn-block  btn-primary">公告基本信息</a>
						</div>
						<div class=" col-sm-2">
							<a class="btn btn-block  btn-primary disabled">公告图文详情</a>
						</div>
					</div>
					<form class="form-horizontal" id="noticeForm" >

						<div class="panel blank-panel">


							<div class="panel-body">

								<div class="tab-content">
									<!-- Tab1 -->
									<div id="tab-1">
										<div class="form-group">
											<div  class="col-sm-6">
												<input type="hidden" name="id" value="${notice.id }" />
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">公告名称</label>
											<div  class="col-sm-6">
												<input type="text" class="form-control" required="required"
													   name="noticeTitle" value="${notice.noticeTitle}" />
												<input type="hidden" name="noticeConPath" value="${notice.noticeConPath}"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-2 control-label">公告类型</label>
											<div class="col-sm-6">
												<select class="form-control" id="noticeBusType"
													required="required" name="noticeBusType">
													<option value="">请选择</option>
													<c:forEach var="list" items="${type}">
													<option value="${list.key}"
															<c:if test="${notice.noticeBusType eq list.key}">selected</c:if>>
															${list.value}</option>
													</c:forEach>
												</select>
											</div>
										</div>
									<%--	<div class="form-group">
											<label class="col-sm-2 control-label">公告内容</label>
											<div class="col-sm-6">
												<input type="text" class="form-control" required="required" name="noticeContent" value="${notice.noticeContent}" />
											</div>
										</div>--%>
									<%--	<div class="form-group">
											<label class="col-sm-2 control-label">通知内容类型</label>
											<div class="col-sm-6">
												<select class="form-control" id="noticeContType" name="noticeContType">
													<option value="">请选择</option>
													<option value="01" <c:if test="${notice.noticeContType eq '01'}">selected </c:if>>文本</option>
													<option value="02" <c:if test="${notice.noticeContType eq '02'}">selected </c:if>>html</option>
												</select>
											</div>
										</div>--%>
									<%--	<div class="form-group">
											<label class="col-sm-2 control-label">通知是否自动推送</label>
											<div class="col-sm-6">
												<select class="form-control" id="noticeAutoSend"
														required="required" name="noticeAutoSend">
													<option value="">请选择</option>
													<option value="01" <c:if test="${notice.noticeAutoSend eq '01'}">selected </c:if>>是</option>
													<option value="02" <c:if test="${notice.noticeAutoSend eq '02'}">selected </c:if>>否</option>
												</select>
											</div>
										</div>--%>
										<div class="form-group">
											<div class="col-sm-4 col-sm-offset-2">
												<a class="btn btn-primary" href="../notice/toNoticeList.htm" >返回</a> 	<a class="btn btn-primary" onclick="nextTab(1)"> 下一步 </a>
											</div>
										</div>
										<p class="text-danger text-left" id="errorMsg"></p>
									</div>
									<!-- Tab2 -->
									<div id="tab-2" style="display: none;">
										<div class="col-sm-12">
											<textarea type="text" class="form-control"
												name="descriptionText" id="descriptionText" >${notice.description}</textarea>
											<label id="description-error" class="error"
												style="display: none;" for="descriptionText">必填</label>
										</div>

										<div class="form-group">
											<div class="col-sm-4 col-sm-offset-2">
												<a class="btn btn-primary" onclick="upTab(2)"> 上一步 </a> <a
													class="btn btn-primary" id="saveBtn"> 完成 </a>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>


<!-- Steps -->
<script src="../resources/Hplus/js/plugins/staps/jquery.steps.min.js"></script>

<!-- Data Tables -->
<script
	src="../resources/Hplus/js/plugins/dataTables/jquery.dataTables.js"></script>
<script
	src="../resources/Hplus/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<!-- Custom and plugin javascript -->
<script src="../resources/Hplus/js/hplus.js?v=2.2.0"></script>
<script src="../resources/Hplus/js/plugins/pace/pace.min.js"></script>

<!-- layerDate plugin javascript -->
<script src="../resources/Hplus/js/plugins/layer/laydate/laydate.js"></script>

<!-- jQuery Validation plugin javascript-->
<script
	src="../resources/Hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="../resources/Hplus/js/plugins/validate/messages_zh.min.js"></script>
<script src="../resources/datejs/date.js"></script>

<!-- SUMMERNOTE -->
<script src="../resources/Hplus/js/plugins/summernote/summernote.min.js"></script>
<script src="../resources/Hplus/js/plugins/summernote/summernote-zh-CN.js"></script>


<script src="../resources/js/noticeEdit.js"></script>
<!-- Web Uploader -->
<script src="../resources/Hplus/js/plugins/webuploader/webuploader.min.js"></script>
<script src="../resources/js/common/common.js"></script>
